package cn.lu.dao;

import cn.lu.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(User user);

    /**
     * 判断用户是否是老师
     * @param userId
     * @return
     */
    int userWhetherTeacher(Integer userId);
}